<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>编辑个人信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_1466258017_0700355.css">
    <link rel="stylesheet" href="/assets/layim/css/layui.css" media="all">
    <style type="text/css">
        .dkuang {
            width: 900px;
            height: 450px;
            background-color: #FFF;
            position: absolute;
            top: 50%;
            left: 50%;
            margin-top: -250px;
            margin-left: -450px;
        }

        .dkuang .dkuang1 {
            float: left;
            width: 306px;
            height: 290px;
            border: 1px solid #D2D6D9;
            margin: 70px 50px;
            background-image: url("{{avatar}}");
            box-shadow: 0px 3px 20px;
            border-radius: 5px;
            background-repeat: no-repeat;
            background-size: cover;
        }

        .dkuang .dkuang2 {
            float: left;
            margin-top: 40px;
        }

        .bjtx1 {
            border: 1px solid #000;
            width: 270px;
            height: 150px;
        }

        .layui-upload-button {
            left: 100px;
            top: 120px;
            background: none;
            color: #fff;
        }
    </style>
</head>

<body>
<div class="dkuang">
    <div class="dkuang1">
        <input type="file" name="avatar" class="layui-upload-file">
        <input type="button" id="cropImg" value="裁剪头像" class="layui-btn">
    </div>
    <div class="dkuang2">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px; text-align:center">
            <legend>编辑个人信息</legend>
        </fieldset>
        <div class="layui-form layui-form-pane">
            <form method="post" class="layui-form layui-form-pane" action="/imapi/editinfo" id="regyh">
                <div class="layui-form-item">
                    <label for="L_username" class="layui-form-label">I D</label>
                    <div class="layui-input-inline">
                        <input name="username" type="text" disabled class="layui-input" value="{{id}}">
                    </div>
                    <div class="layui-form-mid layui-word-aux">2到16个字符</div>
                </div>

                <div class="layui-form-item">
                    <label for="L_username" class="layui-form-label">昵称</label>
                    <div class="layui-input-inline">
                        <input type="hidden" value="{{avatar}}" id="L_avatar">
                        <input name="username" type="text" required class="layui-input" id="L_username"
                               autocomplete="off" lay-verify="username" value="{{username}}">
                    </div>
                    <div class="layui-form-mid layui-word-aux">2到16个字符</div>
                </div>

                <div class="layui-form-item layui-form-text">
                    <label for="L_sign" class="layui-form-label">个人签名</label>
                    <div class="layui-input-block">
                        <textarea cols="" rows="" id="L_sign" class="layui-textarea">{{sign}}</textarea>
                    </div>
                </div>

                <div class="layui-form-item">
                    <button class="layui-btn" style="margin-left:208px;" lay-filter="tj" lay-submit>保存修改</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="application/javascript" src="/assets/layim/layui.js"></script>
<script type="application/javascript" src="/assets/layim/js/EditInfo.js"></script>
</body>
</html>